Add shadow to UIView on all sides in Swift 4
Thecontentsgravityconstantsspecifythepositionofthecontentobjectwhenthelayerboundsislargerthantheboundsofthecontentobject.,Thepathyouprovidedefinestheoutlineoftheshadow.Itisfilledusingthenon-zerowindingruleandthecurrentshadowcolor,opacity,andblurr...。參考影片的文章的如下: